<template>
  <el-switch v-bind="{...$attrs,...$props}" v-on="$listeners"/>
</template>
<script>
/**
 * 该组件对el-switch进行了简单的封装,用法与el-switch一致,仅添加了一些默认的参数
 */
export default {
  name: "eSwitch",
  props: {
    activeColor: {
      required: false,
      default: "#13ce66"
    },
    inactiveColor: {
      required: false,
      default: "#ff4949"
    },
    activeText: {
      required: false,
      default: "是"
    },

    activeValue: {
      required: false,
      default: 1
    },
    inactiveText: {
      required: false,
      default: "否"
    },
    inactiveValue: {
      required: false,
      default: 0
    }
  }
}
</script>

<style scoped>

</style>
